﻿using UnitTests;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;

[TestClass()]
public class CoursTest
{


    private TestContext testContextInstance;

    public TestContext TestContext
    {
        get
        {
            return testContextInstance;
        }
        set
        {
            testContextInstance = value;
        }
    }

    [TestMethod()]
    public void RemoveUnexistingTest()
    {
        Courses tr = new Courses();
        Student testSt = new Student(22222, "sd");
        bool removed = tr.RemoveStudent(testSt);
        Assert.AreEqual(false, removed, "Did not return false");
    }

    [TestMethod()]
    [ExpectedException(typeof(ArgumentException))]
    public void AddUniqueStudentTest()
    {
        Courses tr = new Courses();
        Student testSt = new Student(22222, "sd");
        tr.AddStudent(testSt);
        tr.AddStudent(testSt);
    }
}
